<%--
  Created by IntelliJ IDEA.
  User: xiong
  Date: 2020/7/8
  Time: 10:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script src="/js/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        div{
            width: 50%;/*宽度*/
            height: 200px;
            margin-left: 20%;/*左外20%*/
            text-align: center;/*内容水平居中*/
            border: 1px #999999 solid;
            margin-top: 10%;
            padding-top: 100px;/*内部边距距顶部*/
        }
        input{
            width: 200px;
            height: 30px;
            margin-top: 5px;
        }
        .btn{
            border: red 1px solid;
            background: red;
            color: white;
            outline: none;/*没有边框线*/
        }
    </style>
</head>
<body>
<div>
<%--    使用jstl,el表达式 进行登录提示,jsp 默认支持el，使用jstl标签需要引入jar包--%>
<%--    登录表单--%>
<%--    ${ } el表达式--%>
<%--    ${param.info}获取info参数--%>
    <c:if test="${param.info==1}">
        <span style="color: red ;font-size: 10px">错误提示账号密码错误</span>
    </c:if>
    <c:if test="${param.info==2}">
        <span style="color: red ;font-size: 10px">请先登录</span>
    </c:if>
    <form action="/user/login" method="post">
        <input type="text" name="username" placeholder="用户名输入">
        <br/>
        <input type="password" name="password" placeholder="密码输入">
        <br/>
        <input type="submit" value="登录" class="btn">
    </form>
</div>

</body>
</html>
